from django.contrib import admin

# Register your models here.
from task_app.models import Orders


@admin.register(Orders)
class OrdersAdmin(admin.ModelAdmin):
    list_display = (
        'id', 'create_time', 'update_time', 'order_number', 'product_name', 'quantity', 'unit_price',
        "payment_status", "payment_due_time"
    )
    # list_display_links = ('id', 'name',)
    # exclude = ('password', 'salt', 'role')
    # empty_value_display = ""  # 空值的默认显示
    # search_fields = ('place_filing_id', 'cellphone',)
    # list_filter = ('del_flag', 'is_main')
